package cn.wjzhang.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * ========================
 * 日志枚举
 *
 * @author wjzhang
 * @version v1.0
 * ========================
 * @date 2023/6/20 9:51
 */
public interface AutoLogEnum {

    @Getter
    @AllArgsConstructor
    enum LogTypeEnum {
        /**
         * 日志类型
         */
        OPERATE(0, "操作日志"),
        LOGIN(1, "登录日志"),
        TASK(2, "定时日志"),
        ;
        private final int code;
        private final String desc;

    }

    @Getter
    @AllArgsConstructor
    enum OperationTypeEnum {
        /**
         * 操作日志类型
         */
        INSERT(0, "新增"),
        UPDATE(1, "修改"),
        DELETE(2, "删除"),
        QUERY(3, "查询"),
        OTHER(4, "其它"),
        ;

        private final int code;
        private final String desc;

    }




}
